package com.chang.bootplus.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;


@Data
@ApiModel(value = "修改资讯", description = "可以将修改过的包含未修改内容的整个全部提交过来，也可以只提交修改的部分和id,其他置为null即可")
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class NewsUpdatePO {

    @ApiModelProperty(value = "资讯id",example = "1",required = true)
    private Long id;

    @ApiModelProperty(value = "标题",example = "标题xxx",required = false)
    private String title;

    @ApiModelProperty(value = "标签",example = "标签xxx",required = false)
    private String label;

    @ApiModelProperty(value = "资讯领域",example = "xx领域",required = false)
    private String field;

//    @ApiModelProperty(value = "资讯封面图",example = "http://xxx",required = false)
//    private String image;

    @ApiModelProperty(value = "资讯内容",example = "内容内容",required = false)
    private String context;

    @ApiModelProperty(value = "权重",example = "0",required = true)
    private Integer score;


}
